# -*- coding: utf-8 -*-
# @Time    : 2020/12/1 19:57
# @Author  : 帅气可爱的Zevin（小泽同学鸭）
# @FileName: flask_python.py
# @Software: PyCharm
# @Motto: study hard and day day up

from flask import Flask, render_template, request

app = Flask(__name__)


@app.route('/')
def index():
    return render_template('accountlqc.html',festival=123,festival_id=1)


@app.route('/accountlqc.html')
def index1():
    return render_template('accountlqc.html',festival=123,festival_id=1)


@app.route('/judge_lqc.html')
def judge():
    return render_template('judge_lqc.html')


@app.route('/loginlqc.html')
def login():
    return render_template('loginlqc.html')


@app.route('/modifypassword_lqc.html')
def modifypassword():
    return render_template('modifypassword_lqc.html')


@app.route('/signin_lqc.html')
def signin():
    return render_template('signin_lqc.html')


@app.route('/user_order.html')
def user_order():
    return render_template('user_order.html')


@app.route("/check_disc", methods=['POST', 'GET'])  #折扣查询
def check_disc():

    checks = request.form.get("checks")

    return render_template('accountlqc.html')


@app.route("/modify_password", methods=['POST', 'GET'])  # 更改密码
def modify_password():

    new_password = request.form.get("new_password")
    old_password = request.form.get("old_password")
    return render_template('accountlqc.html')


@app.route("/login_customer", methods=['POST', 'GET'])  # 更改密码
def login_customer():

    username = request.form.get("username")
    password = request.form.get("password")
    return render_template('accountlqc.html')



@app.route("/signin_customer", methods=['POST', 'GET'])  # 更改密码
def signin_customer():

    name = request.form.get("name")
    email = request.form.get("email")
    password = request.form.get("password")
    password2 = request.form.get("password2")
    phone = request.form.get("phone")
    return render_template('loginlqc.html')


@app.route("/order_judge", methods=['POST', 'GET'])  # 更改密码
def order_judge():
    order_no = request.form.get("order_no")
    product = request.form.get("product")   #商品评价（1-5）
    staff = request.form.get("staff")       #导购评价（1-5）
    print(product,staff)
    return render_template('judge_lqc.html')


if __name__ == '__main__':
    app.run(host='127.0.0.1', port=5001)
